package cn.zhengzhou.springbootmybatis.mapper;

import cn.zhengzhou.springbootmybatis.pojo.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper // @Mapper注解用在接口类上，在编译之后会生成相应的接口实现类，该接口类的实现类由MyBatis创建，然后交由Spring框架管理
public interface StudentMapper {
    public void saveStudent(Student student);

    public void updateStudent(Student student);

    public void delStudent(String id);

    public List<Student> queryStudent();
}
